package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.sys.modular.system.entity.BtyXd;
import cn.stylefeng.guns.sys.modular.system.entity.BtyXdgt;
import cn.stylefeng.guns.sys.modular.system.mapper.BtyXdgtMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案管理表 服务实现类
 * </p>
 *
 * @author liuy
 * @since
 */
@Service
public class BtyXdgtService extends ServiceImpl<BtyXdgtMapper, BtyXdgt> {
    /**
     * 获取档案管理列表
     *
     * @author fengshuonan
     * @Date 2018/12/23 6:05 PM
     */

    public Page<Map<String, Object>> list(String condition,Long userId,String beginTime,String endTime) {
        Page page = LayuiPageFactory.defaultPage();

        return this.baseMapper.list(page, condition,userId,beginTime,endTime);
    }
    public List<Map<String, Object>> listExport(String condition,Long userId,String beginTime,String endTime){
       return baseMapper.listExport(condition,userId,beginTime,endTime);
    }
    public  BtyXdgt lastInfo(Long userId,String dm){
        return baseMapper.lastInfo(userId,dm);
    }
    public List<BtyXd> dmList(String username){
        return baseMapper.dmList(username);
    }

}
